import Vue from 'vue'
import Router from 'vue-router'
import OneSelf from '@/page/oneSelf/oneself'
import ShoppingCart from '@/page/shoppingCart/shoppingCart'
import Classify from '@/page/Classify/classify'
import SearchPage from '@/page/Search/searchPage'
import MeVue from '@/page/meVue/mevue'
import Login from '@/page/Login/login'
import Coursehome from '@/page/coursehome/coursehome'

Vue.use(Router)


export default new Router({
  mode: 'history',
  base: '/',
  linkActiveClass: 'nuxt-link-active',
  linkExactActiveClass: 'nuxt-link-exact-active',
  routes: [{
      path: '/',
      component: MeVue,
      name: 'MeVue'
    },
    {
      path: '/classify',
      component: Classify,
      name: 'classify'
    },
    {
      path: '/shoppingCart',
      component: ShoppingCart,
      name: 'shoppingCart'
    },
    {
      path: '/search/searchPage',
      component: SearchPage,
      name: 'searchPage'
    },
    {
      path: '/oneSelf',
      component: OneSelf,
      name: 'oneSelf'
    },
    {
      path: '/login',
      component: Login,
      name: 'login'
    },
    {
      path: '/coursehome',
      component: Coursehome,
      name: 'coursehome'
    }
  ]
})
